def all_plus(num,Sum,now):
    if num==0:
        Sum+=1
    for i in range(now,num+1):
        Sum=all_plus(num-i,Sum,i)
    return Sum
n=int(input())
print(all_plus(n,0,1)-1)